<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="css/admin.css" />
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/color.css"/>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo/demo.css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>	

<script type="text/javascript">
ddaccordion.init({
	headerclass: "submenuheader", 
	contentclass: "submenu", 
	revealtype: "click", 
	mouseoverdelay: 200, 
	collapseprev: true, 
	defaultexpanded: [], 
	onemustopen: false, 
	animatedefault: false, 
	persiststate: true, 
	toggleclass: ["", ""], 
	togglehtml: ["suffix", "<img src='images/plus.gif' class='statusicon' />", "<img src='images/minus.gif' class='statusicon' />"], 
	animatespeed: "fast", 
	oninit:function(headers, expandedindices){ 
	},
	onopenclose:function(header, index, state, isuseractivated){ 
	}
});

	
	

function logout(){
alert("You are Logout SuccessFully");
}

var url;      
function destroyUser(){
    var row = $('#dg').datagrid('getSelected');
    if (row){
        $.messager.confirm('Confirm','Are you sure you want to delete this user\'s withdrawal request ?',function(r){
            if (r){
                $.post('./bank/deleteWithdrawal',{id:row.id},function(result){
                    if (result.success){
                        $('#dg').datagrid('reload');    
                    } else {
                        $.messager.show({    
                            title: 'Error',
                            msg: result.errorMsg
                        });
                    }
                },'json');
            }
        });
    }
}
</script>
</head>
<body>
  <%@ include file="header.jsp" %>	
    

    <div class="main_content">
    
                   
    <div class="center_content">  
               
<div style="margin:20px 0;"></div>
    
    <table id="dg" title="Withdrawal Requests" class="easyui-datagrid" style="width:1300px;height:250px" data-options="singleSelect:true,collapsible:true,url:'./bank/showBWithdrawal',method:'GET'"
     toolbar="#toolbar" pagination="true" rownumbers="true" fitColumns="true" singleSelect="true">
        <thead>
            <tr>
                <th data-options="field:'brokeId',width:350">Broker ID</th>
                <th data-options="field:'fname',width:350">Broker  Name</th>
                <th data-options="field:'emailid',width:350">Email</th>
                <th data-options="field:'ifsc',width:350">IFSC CODE</th>
                <th data-options="field:'accno',width:350">Bank Account Number</th>
                <th data-options="field:'bname',width:350">Bank Name</th>
                <th data-options="field:'amount',width:350">Amount</th>
                <th data-options="field:'w_mode',width:350">Withdrawal Method</th>
               <th data-options="field:'id',width:350" style="visibility: hidden;">ID</th>
            </tr>
        </thead>
    </table>
  </div>         
    <div id="toolbar">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="destroyUser()">Remove Requests</a>
    
    </div>
  </div>         
                                    
  </div>      
        	
  <%@ include file="footer.jsp" %>			
</body>
</html>